//
//  ViewController.m
//  ssssssss
//
//  Created by lanouhn on 16/7/18.
//  Copyright © 2016年 cgh. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSLog(@"aaaaaaaaasssssaaaaaa");
    NSLog(@"ssss");
    NSLog(@"dasd");
    NSLog(@"asdasdas");
    UIAlertController *aC = [UIAlertController alertControllerWithTitle:@"标题" message:@"内容" preferredStyle:UIAlertControllerStyleAlert];
    //添加输入框
    [aC addTextFieldWithConfigurationHandler:nil];
    UIAlertAction *aA1 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
        NSLog(@"取消");
    }];
    UIAlertAction *aA2 = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        NSLog(@"确定");
    }];
    [aC addAction:aA1];
    [aC addAction:aA2];
    [self presentViewController:aC animated:YES completion:nil];
    NSLog(@"123456789456123789456123");
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    lab.backgroundColor = [UIColor redColor];
    lab.text = @"aaa";
    [self.view addSubview:lab];
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
